﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using ConsoleAppDemo.ArithmeticSore;
using ConsoleAppDemo.LinqDemo;
using ConsoleAppDemo.ThreadDemo;
using ConsoleAppDemo.Classes;
using ConsoleAppDemo.CacheDemo;
namespace ConsoleAppDemo
{
    class Program
    {

        static void Main(string[] args)
        {

            //CacheTest.Entry();
            //keyword
            KeywordDemo.StaticReadonly.Entry();

            //linq
            //LambdaDemo.Entry();

            //LambdaDemo.Entry();

            //LinqBaseOperation.Entry();

            //BubbleSore.Entry();
            //InsertSore.Entry();
            //AccountEntry.Entry();
            //MsdnAccountEntry.Entry();

            /*  Person p=new Person();

              Console.WriteLine(p.Name);*/
            //            var p=new Point {x = 1, y = 2};
            //            Console.WriteLine("P:" + p.ToString());
            //            object o = p;
            //
            //            var p1 = (Point) o;
            //            p1.x = 3;
            //            p1.y = 4;
            //
            //
            //            p = p1;
            //            Console.WriteLine("P1:" + p1.ToString());
            //            Console.WriteLine("P:" + p.ToString());

            Console.ReadLine();
        }

        public struct Point
        {
            public int x, y;
            public override string ToString()
            {
                return string.Format("x:{0};y:{1}", x, y);
            }
        }
    }
}
